package com.tuyan.aixiang.common;

public class
Constant {
    //18669722110   aaa12345
    public static final Long HTTP_TIMEOUT = 2000L;

    public static final String YS_APP_KEY = "49c4d486f5db479399affeee94fb0c88";

    public static final String YS_APP_SEC = "f616eb7221bdc9390d073f5953b7a212";

    public static final String TOKEN_KEY = "token"; //""Access-Token";

    public static final String USER_MOBILE = "User-Mobile";

    public static final String LAUNCH_MODE = "Launch-Mode";

    public static final String MODEL_CAMERA = "CAMERA"; // 摄像头

    public static final String MODEL_ALARM = "ALARM"; // 报警器

    public static final String MODEL_SOCKET ="SOCKET"; // 插座

    public static final String SUB_ALARM_TYPE_CO = "co"; // 燃气

    public static final String SUB_ALARM_TYPE_WATER = "water";  //水浸

    public static final String SUB_ALARM_TYPE_URGENT = "urgent"; // 紧急按钮

    public static final String SUB_ALARM_TYPE_GAS = "gas,fire"; // 一氧化碳

    public static final String SUB_MOTION_DETECT = "motiondetect";

    public static final String YS_TOKEN = "Ys-Token";

    public static final String PACKAGE_NAME = "com.tuyan.aixiang";


    public static final String AIXIANG_API_HOST ="https://aixiang21.chengyang.qcn.com.cn/"; //接口访问地址

    public static final String WEB_HSOT = "https://aixiang2.chengyang.qcn.com.cn/#" ;//网页地址


 // public static final String AIXIANG_API_HOST ="https://aixiang2.chengyang.qcn.com.cn/"; //接口访问地址

//  public static final String WEB_HSOT = "https://tuyan.hpbird.com" ;//网页地址



    public static final String YS_API_HOST = "https://open.ys7.com/";

    public static final String RES_URL = AIXIANG_API_HOST + "pub/resource/res/";

    public static String getResUrl(String uuid) {
        if(null == uuid) return "";
        if(uuid.startsWith("http://") || uuid.startsWith("https://")) return uuid;
        return RES_URL + uuid;
    }

    public static final String SERVICE_PATH = "/"; //"/v1/p/dr/";



    public static final String WEB_DOMAIN = "aixiang2.chengyang.qcn.com.cn/#"; //.hpbird.com//"".tuyanplat.com";//aixiang2.chengyang.qcn.com.cn/#//

    public static final String ME_EDIT = WEB_HSOT +  "/mine/information/index";
    public static final String ME_FRIEND = WEB_HSOT + "/mine/friend/index";
    public static final String ME_SHARE_DEVICE = WEB_HSOT + "/mine/device/index";
    public static final String ME_ABOUT = WEB_HSOT + "/mine/about/index";
    public static final String ME_UPDATE = WEB_HSOT + "/mine";
    public static final String ME_HELP = WEB_HSOT + "/mine/about/";
    public static final String ME_SETTING = WEB_HSOT + "/mine/setting/index";

    public static final String MANAUL_ADD_DEVICE = WEB_HSOT + "/mine/device/add";

    public static final String DEVICE_LIST = WEB_HSOT + "/dashboard/list";

    public static final String MAP_INDEX = WEB_HSOT + "/map";

    public static final String ACCOUNT_REGISTER = WEB_HSOT + "/register/home";
    public static final String ACCOUNT_RESTORE = WEB_HSOT + "/register/forget";

    public static final String DEVICE_SEARCH = WEB_HSOT + "/dashboard/search";

    public static final String SHORTCUT_MORE = WEB_HSOT + "/dashboard/notice";
//    public static final String SHORTCUT_ALARM = WEB_HSOT + "/dashboard/policy";

    public static final String ALARM_DETAIL = WEB_HSOT + "/dashboard/policy";
    public static final String SOCKET_DETAIL = WEB_HSOT + "/dashboard/socket/index";
    public static final String CAMERA_SETTING = WEB_HSOT + "/dashboard/explicit";

    public static final String CHANGE_PWD = WEB_HSOT + "/mine/information/password";

    // 消息
    public static final String NOTICE = WEB_HSOT + "/notice";

    public static final String NOTICE_LIST = NOTICE + "/index";

    public static final String HELP_INDEX = WEB_HSOT + "/mine/help";

    public static final String HELP_BACKUP_MOBILE = WEB_HSOT + "/mine/anyPhone";


    // webview选择文件
    public static final int REQUEST_CODE_FILE_CHOOSER = 7001;

    //请求权限
    public static final int REQUEST_PERMISSION = 9999;
    // 百度sdk
    // requestCode
    public static final int REQUEST_CODE_LIVENESS_VERIFY = 8000;     // 活体检测
    public static final int REQUEST_CODE_OCR_COMMON = 8888;
    public static final int REQUEST_CODE_OCR_BANKCARD = 8001;       // 银行卡
    public static final int REQUEST_CODE_OCR_IDCARD_FRONT = 8002;     // 身份证 front
    public static final int REQUEST_CODE_OCR_IDCARD_BACK = 8003;     // 身份证 back

    public static final int REQUEST_CODE_VEHICLE_LICENSE = 8004; // 行驶证
    public static final int REQUEST_CODE_DRIVING_LICENSE = 8005; // 驾驶证
    public static final int REQUEST_CODE_LICENSE_PLATE = 8006;      // 车牌


    public static final String WX_SCOPE_USERINFO = "snsapi_userinfo";

    public static final int SHORT_CUT_ALARM = 1;

    public static final int SHORT_CUT_MSG = 2;

    public static final int SHORT_CUT_NOTICE = 3;

    public static final int SHORT_CUT_SHARE = 4;

    public static final int NOTICE_SOUND_TYPE_DEFAULT = 1;

    public static final int NOTICE_SOUND_TYPE_IMPORTANT = 2;

}

